#include <stdlib.h>
#include <stdio.h>
#include "bitree.h" //请不要删除，否则检查不通过


// I can't understand why this code can't get 100.
// It needs further analysis.
bool path(BiTNode* root, BiTNode* node, Stack* s){
    push(s, root);
    BiTNode tmp;
    top(s, &tmp);
    if(root == node || (root -> left && path(root -> left, node, s)) || (root -> right && path(root -> right, node, s)) ) 
        return true;
    pop(s, &root);
    return false;
}